package com.yangjian.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yangjian.bean.Employee;
import com.yangjian.page.PageParameter;
import org.springframework.stereotype.Service;


public interface EmployeeService {


    /**
     * 登录查询
     * @param employee
     * @return
     */
    Employee login(Employee employee);

    /**
     * 添加员工
     * @param employee
     * @return
     */
    int add(Employee employee);

    /**
     * 员工--分页查询
     * @param page
     * @return
     */
    IPage<Employee> findPage(PageParameter page);


    /**
     * 修改员工
     * @param employee
     * @return
     */
    int update(Employee employee);
}
